package org.yuankan.yuankanmanagerserver.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yuankan.yuankanmanagerserver.param.ParamProperties;

@RestController
@RequestMapping("config")
public class ConfigController {

    @Autowired
    ParamProperties paramProperties;

    @GetMapping("/getConfig")
    public void  getConfig() {
        System.out.println(paramProperties.getText());
        System.out.println(paramProperties.getName());

    }

        @GetMapping("/index")
        public String getIndexPage() {

            return "redirect:/wechat-login.html";
        }


}
